package org.example.netty.config;

import org.example.netty.config.NettyEndpointConfig;

public class NettyClientConfig implements NettyEndpointConfig {
    /** 服务的端口 */
    private int port;
    /** 服务端的地址 */
    private String address;
    /** 雪花算法，机器id，同步服务值最好不一样 */
    private long machineId;

    @Override
    public void setMachineId(long machineId) {
        this.machineId = machineId;
    }

    @Override
    public long getMachineId() {
        return machineId;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
